import { S } from '../../../s';
import { IPSDEFVRSysValueRuleCondition } from './ipsdefvrsys-value-rule-condition';
import { PSDEFVRSingleConditionImpl } from './psdefvrsingle-condition-impl';
import { IPSSysValueRule } from '../../../valuerule/ipssys-value-rule';

export class PSDEFVRSysValueRuleConditionImpl
  extends PSDEFVRSingleConditionImpl
  implements IPSDEFVRSysValueRuleCondition
{
  protected pssysvaluerule: IPSSysValueRule;
  getPSSysValueRule(): IPSSysValueRule | null {
    return (
      this.pssysvaluerule ||
      (this.pssysvaluerule = this.fillObjectModel(
        S._1b,
        this.M.getPSSysValueRule,
        S._2f3,
      ) as IPSSysValueRule)
    );
  }

  get ruleInfo(): string {
    return this.M.ruleInfo;
  }
  get cls(): string {
    return 'PSDEFVRSysValueRuleConditionImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._1cc) return true;
    return super.instanceof(cls);
  }
}
